package com.cgsrp.cgsrp_baby.service;

import com.cgsrp.cgsrp_baby.domain.ChildParentRelation;
import com.cgsrp.cgsrp_baby.domain.Message;
import com.cgsrp.utils.Result;

import java.util.List;

public interface MessageService{


    int deleteByPrimaryKey(Integer id);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);

    List<Message> list(int userId);

    int updateType(Integer messageId, Integer type);

    int updateState(Integer messageId, Integer state);

    Result del(Integer id);


}
